package com.singleton;

/****
 * 饿汉式
 *
 */
public class Singleton1 {
	//当class 文件被加载初始化
		private static Singleton1 singleton = new Singleton1();
		private Singleton1() {
		}
		public static Singleton1 getSingleton() {
			return singleton;
		}
}
